.layui-menu {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  outline: none;
  list-style: none;
  font-size: 14px;
  color: #6c757d; /* #343a40 */
  background-color: #fff;
  box-sizing: border-box;
  transition: transform .3s, width .3s;
}

.layui-menu-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background-color: #ff5722;
  box-shadow: 0 0 0 1px #fff;
  box-sizing: border-box;
}

.layui-menu-item-icon {
  margin-right: .5em;
  transition: font-size .2s;
}

.layui-menu-item-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -.5em;
  transform: rotate(0);
  transition: transform .2s;
}

.layui-menu-item-inner i {
  display: inline-block;
  font-size: inherit;
  color: inherit;
}

.layui-menu-item-inner .layui-menu-badge {
  position: absolute;
  right: 27px;
}

.layui-menu-item-inner {
  position: relative;
  display: block;
  margin: 0;
  padding: .85em 60px .85em 1.5em;
  min-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  transition: all .3s cubic-bezier(.645, .045, .355, 1);
}

.layui-menu-item:hover > .layui-menu-item-inner,
.layui-menu-item.is-active > .layui-menu-item-inner {
  color: #2a7ee1;
}

.layui-menu-item.is-active {
  background-color: #f0f8ff;
}

.layui-menu-item {
  position: relative;
  transition: background-color .2s cubic-bezier(.645, .045, .355, 1);
  box-sizing: border-box;
}

.layui-menu.is-submenu {
  display: none;
}

/* .layui-menu-item.has-menu.is-opened > .layui-menu.is-submenu {
  display: block;
} */

.layui-menu.is-submenu > .layui-menu-item > .layui-menu-item-inner {
  padding-left: 3em;
}

.layui-menu-item.has-menu.is-opened > .layui-menu-item-inner > .layui-menu-item-arrow {
  transform: rotate(90deg);
}

.layui-menu.is-submenu .layui-menu.is-submenu {
  display: block;
  position: absolute;
  left: 100%;
  top: 0;
  width: auto;
  max-width: 0;
  margin-left: -2px;
  overflow: hidden;
  transform: scale(.8);
  border-radius: 4px;
  opacity: 0;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.78, .17, .43, 1), max-width .2s cubic-bezier(.78, .17, .43, 1), max-height .2s cubic-bezier(.78, .17, .43, 1), opacity .2s cubic-bezier(.78, .17, .43, 1);
  transform-origin: left;
}

.layui-menu.is-submenu .layui-menu-item.has-menu:hover > .layui-menu.is-submenu {
  transform: scale(1);
  white-space: nowrap;
  max-width: 250%;
  min-width: 170px;
  opacity: 1;
  overflow: visible;
}

.layui-menu.is-shrink {
  width: 60px;
}

.layui-menu.layui-menu.is-shrink > .layui-menu-item > .layui-menu-item-inner {
  padding-right: 10px;
  padding-left: 1em;
}

.layui-menu.layui-menu.is-shrink > .layui-menu-item > .layui-menu-item-inner i {
  font-size: 125%;
}

.layui-menu.layui-menu.is-shrink > .layui-menu-item > .layui-menu-item-inner > .layui-menu-item-arrow,
.layui-menu.layui-menu.is-shrink > .layui-menu-item > .layui-menu-item-inner > .layui-menu-item-label {
  display: none;
}

.layui-menu.layui-menu.is-shrink > .layui-menu-item > .layui-menu-item-inner > .layui-menu-badge {
  overflow: hidden;
  right: 10px;
  width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
}
